import request from '@/utils/request'

export function fetchStockOutList(params) {
  return request({
    url: '/stockOut',
    method: 'get',
    params
  })
}

export function listNoPage() {
  return request({
    url: '/stockOut/listNoPage',
    method: 'get'
  })
}


export function createStockOut(data) {
  return request({
    url: '/stockOut',
    method: 'post',
    data
  })
}

export function updateStockOut(data) {
  return request({
    url: `/stockOut`,
    method: 'put',
    data
  })
}

export function deleteStockOut(id) {
  return request({
    url: `/stockOut/${id}`,
    method: 'delete'
  })
}
